package com.touna.aop;

import com.alibaba.fastjson.JSONObject;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * author: xl
 * time: 2018/6/29 15:50
 * description:
 **/
@Aspect
@Component
public class AspectConfig {


    public  AspectConfig(){
        System.out.println("test");
    }

    @Around("execution(* com.touna.aop.service.RequestService.call(..))&& args(json)")
    public void saveUploadRequest(JSONObject json){
        System.out.println("aspect json:   "+json);
    }


    @Around("execution(* com.touna.aop.service.RequestService.call())")
    public void saveUploadRequest(){
        System.out.println("aspect json:   ");
    }

}









